Stop exporting gtk_parse_args
authorMatthias Clasen <mclasen@redhat.com>
Tue, 27 Dec 2016 23:36:19 +0000 (18:36 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 19 Jan 2017 18:21:12 +0000 (13:21 -0500)
We want to stop handling commandline arguments, and that is the
sole purpose of this function. So it has to go

gtk/gtkmain.c
gtk/gtkmain.h

index 97f0144b98857c2cbcf8414e7415d08a2d245100..49813944ba692c622e72d6b5bfffd3e9126e2c08 100644 (file)
@@ -902,29 +902,7 @@ gtk_get_option_group (gboolean open_default_display)
   return group;
 }
 
-/**
- * gtk_parse_args:
- * @argc: (inout): a pointer to the number of command line arguments
- * @argv: (array length=argc) (inout): a pointer to the array of
- *     command line arguments
- *
- * Parses command line arguments, and initializes global
- * attributes of GTK+, but does not actually open a connection
- * to a display. (See gdk_display_open(), gdk_get_display_arg_name())
- *
- * Any arguments used by GTK+ or GDK are removed from the array and
- * @argc and @argv are updated accordingly.
- *
- * There is no need to call this function explicitly if you are using
- * gtk_init(), or gtk_init_check().
- *
- * Note that many aspects of GTK+ require a display connection to
- * function, so this way of initializing GTK+ is really only useful
- * for specialized use cases.
- *
- * Returns: %TRUE if initialization succeeded, otherwise %FALSE
- */
-gboolean
+static gboolean
 gtk_parse_args (int    *argc,
                 char ***argv)
 {
index 475439516996a6873ff4fd64458a76dbd4b4ae71..79398b2a2ba940ab8fd4b96174592dd06c367b62 100644 (file)
@@ -72,10 +72,6 @@ const gchar* gtk_check_version (guint   required_major,
 /* Initialization, exit, mainloop and miscellaneous routines
  */
 
-GDK_AVAILABLE_IN_ALL
-gboolean gtk_parse_args           (int    *argc,
-                                   char ***argv);
-
 GDK_AVAILABLE_IN_ALL
 void     gtk_init                 (int    *argc,
                                    char ***argv);